import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
import { ChartdetailsPage } from '../chartdetails/chartdetails';

/**
 * Generated class for the ChatPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */


@Component({
  selector: 'page-chat',
  templateUrl: 'chat.html',
})
export class ChatPage {
  userinfo: Object;
  ChartdetailsPage: any;
  constructor(
    public navCtrl: NavController,
    public navParams: NavParams
  ) {
    //这块可以直接从Api接口或者其他方法实现用户的列表定义
    this.userinfo = {
      userid: '123321',
      username: '女神'
    }
    this.ChartdetailsPage = ChartdetailsPage;
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad ChatPage');
  }

}
